home *** CD-ROM | disk | FTP | other *** search
- /*
- #################################################################
- # Firefox GUI Minify #
- #################################################################
- # Author: Domenico Martella #
- # E-mail: domenico.martella@alcacoop.it #
- # Date: 2010-01-04 #
- #################################################################
- # #
- # Copyright (C) 2010 - Alca Soc. Coop. (Lecce, IT) #
- # http://www.alcacoop.it #
- # #
- # This program is free software; you can redistribute #
- # it and/or modify it under the terms of the GNU General #
- # Public License as published by the Free Software #
- # Foundation; either version 3 of the License, or (at your #
- # option) any later version. #
- # #
- # This program is distributed in the hope that it will be #
- # useful, but WITHOUT ANY WARRANTY; without even the #
- # implied warranty of MERCHANTABILITY or FITNESS FOR A #
- # PARTICULAR PURPOSE. See the GNU General Public License #
- # for more details. #
- # #
- # You should have received a copy of the GNU General #
- # Public License along with this program; if not, write to #
- # the Free Software Foundation, Inc., 59 Temple Place - #
- # Suite 330, Boston, MA 02111-1307, USA. #
- #################################################################
- */
-
- window.addEventListener("load",function(event){
-
- HGBExtension.init();
- HGBStatusBar.init();
-
- PrefsObserver.onLoad(event);
-
- window.addEventListener("keydown", function(ev){ HGBExtension.keydownHandler(ev) }, false);
-
- Application.activeWindow.events.addListener("TabClose", HGBExtension.tabCloseHandler);
- Application.activeWindow.events.addListener("TabOpen", HGBExtension.tabOpenHandler);
-
- Application.events.addListener("quit", function(event){
- //alert("Non voglio morire");
- Application.prefs.setValue("gui_minify.laststate", HGBExtension.last_state);
- });
-
- }, false);
-
-